package com.vcc.data.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.*;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
@Table(value = "vcc_webhook_source_message")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WebhookSourceMessage extends BaseEntity implements Serializable {

    @Column(comment = "订单号", value = "order_id")
    private String transactionId;

    @Column(comment = "交易状态", value = "transaction_status")
    private String transactionStatus;

    @Column(comment = "原始数据", value = "source_info")
    private String sourceInfo;

    @Column(comment = "处理状态", value = "has_processed")
    private Boolean hasProcessed;

    @Column(comment = "渠道", value = "channel")
    private String channel;

    @Column(comment = "推送事件  card/transaction/account", value = "webhook_event")
    private String webhookEvent;

    @Column(comment = "类型 recharge/withdraw/status/transaction", value = "type")
    private String type;
}
